package com.mzm.tests;

import java.io.IOException;

import org.junit.Before;
import org.junit.BeforeClass;
import org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests;

public class BaseTransactionalSpringTest extends AbstractTransactionalJUnit4SpringContextTests {

	@javax.annotation.Resource
	private DbTestUtils dbTestUtils;
	
//	final List<GrantedAuthority> AUTHORITIES = new ArrayList<GrantedAuthority>();
//	private Authentication superUser = null;
	
	@Before
	public void setUp() throws IOException {
		dbTestUtils.deleteAll();
//		AUTHORITIES.add(new GrantedAuthorityImpl("SYSTEM"));
//		superUser = new UsernamePasswordAuthenticationToken("valire", "valire", AUTHORITIES);
//		SecurityContextHolder.getContext().setAuthentication(superUser);
	}
	
	@BeforeClass
	public static void initClasspath() {
	}

}
